package com.jg.visitor.service;

import com.jg.visitor.controller.dto.ApproverApproveRecordDTO;
import com.jg.visitor.controller.dto.VisitorApplyRecordDTO;
import com.jg.visitor.controller.vo.SignInOutVo;
import com.jg.visitor.domain.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Administrator
* 针对表【visitor_apply_record】的数据库操作Service
* 2022-04-25 23:43:26
*/
public interface VisitorApplyRecordService extends IService<VisitorApplyRecord> {

    /**
     * 根据基本信息，获取申请单DTO对象
     */
    VisitorApplyRecordDTO getVisitorApplyRecordDTOByVisitorApplyRecord(VisitorApplyRecord visitorApplyRecord,
                                                                       List<HealthInfo> healthInfoList,
                                                                       List<FileUploadRecord> fileUploadRecordList,
                                                                       List<OperationRecord> refuseRecordList,
                                                                       List<SignRecord> allSignRecord);

    /**
     * 根据申请单找到被拒绝的记录
     */
    List<OperationRecord> getRefuseRecordList(List<VisitorApplyRecord> dataList);

    /**
     * 申请单操作签到签退
     */
    ApproverApproveRecordDTO signInOut(SignInOutVo signInOutVo);
}
